import request from '@/utils/request-student'

/**
 * 获取成绩列表
 * @param {Object} params 查询参数
 * @returns {Promise}
 */
export function getScoreList(params) {
  return request({
    url: '/student/score/list',
    method: 'get',
    params
  })
}

/**
 * 获取成绩详情
 * @param {Number} examId 考试ID
 * @returns {Promise}
 */
export function getScoreDetail(examId) {
  return request({
    url: `/student/score/detail/${examId}`,
    method: 'get'
  })
} 